package com.jindy.module.oaEvectionApproval.service.impl;

import java.util.ArrayList;
import java.util.List;

import com.jindy.module.oaEvectionApproval.domain.SyEvectionTrip;
import com.jindy.module.oaEvectionApproval.domain.SyOaEvection;
import com.jindy.module.oaEvectionApproval.mapper.SyEvectionTripMapper;
import com.jindy.module.oaEvectionApproval.service.ISyEvectionTripService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * 出差申请Service业务层处理
 * 
 * @author jindy
 * @date 2023-05-31
 */
@Service
public class SyEvectionTripServiceImpl implements ISyEvectionTripService
{
    @Autowired
    private SyEvectionTripMapper syEvectionTripMapper;

    /**
     * 查询出差申请
     * 
     * @param id 出差申请主键
     * @return 出差申请
     */
    @Override
    public SyEvectionTrip selectSyEvectionTripById(Long id)
    {
        return syEvectionTripMapper.selectSyEvectionTripById(id);
    }

    /**
     * 查询出差申请列表
     * 
     * @param syEvectionTrip 出差申请
     * @return 出差申请
     */
    @Override
    public List<SyEvectionTrip> selectSyEvectionTripList(SyEvectionTrip syEvectionTrip)
    {
        return syEvectionTripMapper.selectSyEvectionTripList(syEvectionTrip);
    }

    /**
     * 新增出差申请
     * 
     * @param syEvectionTrip 出差申请
     * @return 结果
     */
    @Override
    public int insertSyEvectionTrip(SyEvectionTrip syEvectionTrip)
    {
        return syEvectionTripMapper.insertSyEvectionTrip(syEvectionTrip);
    }

    /**
     * 修改出差申请
     * 
     * @param syEvectionTrip 出差申请
     * @return 结果
     */
    @Override
    public int updateSyEvectionTrip(SyEvectionTrip syEvectionTrip)
    {
        return syEvectionTripMapper.updateSyEvectionTrip(syEvectionTrip);
    }

    /**
     * 批量删除出差申请
     * 
     * @param ids 需要删除的出差申请主键
     * @return 结果
     */
    @Override
    public int deleteSyEvectionTripByIds(Long[] ids)
    {
        return syEvectionTripMapper.deleteSyEvectionTripByIds(ids);
    }

    /**
     * 删除出差申请信息
     * 
     * @param id 出差申请主键
     * @return 结果
     */
    @Override
    public int deleteSyEvectionTripById(Long id)
    {
        return syEvectionTripMapper.deleteSyEvectionTripById(id);
    }

    @Override
    public List<SyEvectionTrip> selectSyEvectionTripListByIds(Long[] ids) {
        return syEvectionTripMapper.selectSyEvectionTripListByIds(ids);
    }


}
